package org.csmzxy.class2333;

public class SXH_s {
    public static void main(String[] args){
        int num =152;
        int shuixianhua_shu = num;
        int sum = 0;

        while (num > 0){
            int digit = num % 10;
            sum += digit * digit *digit;
            num /= 10;
        }
        if (sum == shuixianhua_shu){
            System.out.println(shuixianhua_shu+"是水仙花数");
        }
        else {
            System.out.println(shuixianhua_shu+"不是水仙花数");
        }
    }
}
